//
//  ClassViewCell.m
//  Feel_at_home
//
//  Created by dlios on 15/9/24.
//  Copyright © 2015年 Feel_at_home. All rights reserved.
//

#import "ClassViewCell.h"
#import <UIImageView+WebCache.h>
@implementation ClassViewCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.image = [[UIImageView alloc] init];
    }
    return self;
}

- (void)layoutSubviews
{
    
    [super layoutSubviews];
    self.image.frame = CGRectMake(10, 0, self.contentView.frame.size.width - 20, 150);
    self.image.layer.borderWidth = 2;
    self.image.layer.cornerRadius = 8.0;
    self.image.layer.masksToBounds = YES;
    [self.contentView addSubview:self.image];
}





/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
